package com.hlkj.baojin.constant;

import com.google.common.collect.Maps;

import java.util.HashMap;
import java.util.Map;

/**
 * 全局常量 lzx
 */
public interface BaojinConstant {

    //数据传输加密key
    String ENCRYPTKEY = "ABWE@@#aQWow!@#$";

    //redis 前缀key
    String REDIS_KEY = "b_j_Redis_";
    /**
     * //是否删除
     */
    boolean NO_DELETE = Boolean.FALSE;

    boolean DELETE = Boolean.TRUE;
    /**
     * 最高权限管理员
     */
    String ROLE_ADMIN = "ROLE_ADMIN";

    /**
     * 用户权限
     */
    String ROLE_USER = "ROLE_USER";

    //是否删除
    Integer IS_NO_DELETE = 0;
    Integer IS_DELETE = 1;

    /**
     * 拦截器 过滤地址
     */
    String[] REQUEST_URL = {
            "/api/v2/**"
    };

    Map<Integer, String> MONITOR_TYPE = new HashMap<Integer, String>() {
        {
            put(0, "储量");
            put(1, "温度");
            put(2, "泄漏量");
        }
    };
    Map<String, Double> CONVERT_TYPE = new HashMap<String, Double>() {
        {      //id & max
            //甲醇 1&2
            put("101", 380.00);
            put("102", 380.00);
            //甲醛 1&2
            put("103", 530.00);
            put("104", 530.00);
            //甲醛 3
            put("105", 200.00);
        }
    };

}
